package org.wxl.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 王学良
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("suppliers")
public class suppliersEntity {
    /**
      CREATE TABLE `suppliers` (
        `uuid` CHAR(36) NOT NULL COMMENT '供应商ID',
        `name` VARCHAR(255) NOT NULL COMMENT '供应商名称',
        `contact` VARCHAR(50) NOT NULL COMMENT '联系方式',
        `address` VARCHAR(512) NOT NULL COMMENT '地址',
        `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
        PRIMARY KEY (`uuid`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='供应商表';
     */
    @Schema(description = "供应商ID")
    @TableId(value = "uuid")
    private String uuid;

    @Schema(description = "供应商名称")
    private String name;

    @Schema(description = "联系方式")
    private String contact;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

}
